import os

def get_json_files(directory):
    json_files = []
    for root, dirs, files in os.walk(directory):
        for file in files:
            if file.endswith('.json'):
                json_files.append(os.path.join(root, file))
    return json_files

directory = './'  # 替换为目标目录的路径
json_files = get_json_files(directory)

for file in json_files:
    print(file)
